import request from '@/utils/request'

// 矿灯管理
export function getLightList(data) {
	return request({
		url: '/park/light/list',
		method: 'get',
		data,
		isJson: false,
	})
}

// 矿灯详情
export function getLightDetail(data) {
	return request({
		url: '/park/light/queryById',
		method: 'get',
		data,
		isJson: true,
	})
}

// 编辑
export function netLightEdit(data) {
	return request({
		url: '/park/light',
		method: 'put',
		data,
		isJson: true,
	})
}

// 更换
export function netLightReplace(data) {
	return request({
		url: '/park/lightProcess/replace',
		method: 'post',
		data,
		isJson: true,
	})
}

// 报废
export function netLightExpire(data) {
	return request({
		url: '/park/lightProcess/expire',
		method: 'post',
		data,
		isJson: true,
	})
}

// 维修
export function netLightMaintain(data) {
	return request({
		url: '/park/lightProcess/maintain',
		method: 'post',
		data,
		isJson: true,
	})
}

// 非正常
export function netLightUnnormal(data) {
	return request({
		url: '/park/lightProcess/fzc',
		method: 'post',
		data,
		isJson: true,
	})
}

// 分配
export function netLightFP(data) {
	return request({
		url: '/park/lightProcess/fp',
		method: 'post',
		data,
		isJson: true,
	})
}

// 取消分配
export function netLightQXFP(data) {
	return request({
		url: '/park/lightProcess/qxfp',
		method: 'post',
		data,
		isJson: true,
	})
}

// 领取 
export function netLightReceive(data) {
	return request({
		url: '/park/lightProcess/receive',
		method: 'post',
		data,
		isJson: true,
	})
}

// 台账记录
export function getLightProcessList(data) {
	return request({
		url: '/park/lightProcess/list',
		method: 'get',
		data,
		isJson: false,
	})
}